import 'package:flutter/material.dart';


///
///  Icon  图标控件
///  https://api.flutter-io.cn/flutter/widgets/Image-class.html
///
/// Icon
///
/// 添加阿里图标的方法 https://blog.csdn.net/qq_42351033/article/details/122362573
///
/// IconButton
/// https://api.flutter-io.cn/flutter/material/IconButton-class.html
///
class IconPage extends StatelessWidget{


  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text("图标组件使用"),
      ),
      body: ListView(
        children: [
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: const [
              Icon(Icons.favorite,
              color:  Colors.pink,
                size: 24.0,
                semanticLabel: "点赞",
              ),
              Icon(Icons.audiotrack,
                color:  Colors.green,
                size: 30.0
              ),
              Icon(IconData(0xe6ec,fontFamily: "AllenSu"),
                size: 28.0,
                color: Colors.lightGreen,
              )
            ],
          ),
          SizedBox(
            height: 30,
          ),
          IconButton( icon:Icon(Icons.add),onPressed: (){

          },)

        ],

      ),
    );
  }


}